package com.igeekhome.wzgl.service.impl;

import com.igeekhome.wzgl.entity.MaterialStorageEntity;
import com.igeekhome.wzgl.mapper.IMaterialStorageMapper;
import com.igeekhome.wzgl.service.IMaterialStorage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaterialStorageImpl implements IMaterialStorage {
    @Autowired
    private IMaterialStorageMapper iMaterialStorageMapper;
    @Override
    public List<MaterialStorageEntity> page() {return iMaterialStorageMapper.page();}
    @Override
    public int insert(MaterialStorageEntity mz) {
        return iMaterialStorageMapper.insert(mz);
    }
    @Override
    public int delete(int id){return iMaterialStorageMapper.delete(id);}
    @Override
    public int update(MaterialStorageEntity mz){return iMaterialStorageMapper.update(mz);}
    @Override
    public List<MaterialStorageEntity> select(int id){return iMaterialStorageMapper.select(id);}
    @Override
    public MaterialStorageEntity getById(int id){return iMaterialStorageMapper.getById(id);}

}
